var should = require('should');
var openServerCarnivalHandler = require('../../../app/servers/activity/handler/openServerCarnivalHandler.js');
var config = require('../../config');
var configUtil = require('../../../app/util/configUtil');
var analyze = require('kc-analyze');

suite('测试openServerCarnivalHandler', function () {
    suite('list', function () {
        test('初始化', function (done) {
            var analyze_config = configUtil.load('analyze');
            var game_config = configUtil.load('game');
            analyze.initialize({
                host: analyze_config.host,
                server_id: game_config.server_id
            });
            done();
        });

        // test('开服狂欢1', function (done) {
        //     var msg = {};
        //     var session = {};
        //     session.uid = config.role_id;

        //     var open_handler = new openServerCarnivalHandler();
        //     open_handler.list(msg, session, function (err, res) {
        //         // console.log('res:', res);
        //         done();
        //     });
        // });

        test('开服狂欢1', function (done) {
            var msg = {};
            var session = {};
            session.uid = config.role_id;

            var open_handler = new openServerCarnivalHandler();
            open_handler.list(msg, session, function (err, res) {
                // console.log('res:', res);
                done();
            });
        });
    });
});
